package com.hongdee.insurance.dict.controller;

import com.hongdee.insurance.dict.service.ITInsuranceDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 *
 */
@RestController
@RequestMapping("/insurance/dict")
public class TInsuranceDictController {

    @Autowired
    private ITInsuranceDictService dictService;

    @RequestMapping("/area/combo")
    @ResponseBody
    public List<Map> areaCombo(@RequestParam(name = "uid", defaultValue = "") String uid,
                           @RequestParam(name = "token", defaultValue = "") String token) throws Exception {
        return this.dictService.comboByArea(uid);
    }

}
